<?php
session_name(DicomScienceAdmin);
session_start();

$mu = $_POST['mUserName'];
$mg = $_POST['mGivenName'];
$mf = $_POST['mFirstName'];
$mp = $_POST['mPassword'];
$ml = $_POST['mUserLevel'];
$mi = $_POST['mUserId'];

include ('../includes/gset.php');
include ('../includes/database/connect.php');
$sql_updateUser = "UPDATE staff SET username = '$mu', lastname = '$mg', firstname = '$mf', password = '$mp', userlevel = '$ml' WHERE id_staff = '$mi';";
$updateUser = mysql_query($sql_updateUser);
include ('../includes/database/closedb.php');

header("Location: useradmin.php");
?>